
<form id="form_edit"><input type="hidden" name="total" id="total" value="{[$result.total]}" />
<input type="hidden" name="rate" id="rate" value="{[$result.rate]}" size="12">
<input type="hidden" name="rmb" id="rmb" value="{[$result.rmb]}" size="12">
<table>
	<tr>
		<td align="right">报销人：</td>
		<td><input type="text" name="emp" id="emp" value="{[$result.emp]}:{[$result.emp_t]}" size="12" title="{[$t.emp_|emp:'报销人']}"> <input type="checkbox"
			name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
		<td align="right">填单日期：</td>
		<td><input type="text" name="date" id="date" value="{[$result.date]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">事由：</td>
		<td colspan="3"><textarea rows="2" name="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td width="20%" align="right">凭证：</td>
		<td width="30%"><select name='invoice' id='invoice'>
			{[html_options options=$invoice_option selected=2]}
		</select></td>
		<td width="20%" align="right">币种：</td>
		<td width="30%"><select name='currency' id='currency'>
			{[html_options options=$currency_option selected=CNY]}
		</select></td>		
	</tr>
	<tr>
		<td align="right">支付：</td>
		<td><select name='payment' id='payment'>
			{[html_options options=$payment_option selected=$result.payment]}
		</select><a href="javascript:void(0)" id="payment_x" onclick="Pay.collapse(this)"
			class="ui-icon ui-icon-circle-triangle-w" style="display: inline-table"></a></td>
		<td align="right">借款：</td>
		<td><input type="text" name="borrow" value="{[$result.borrow]}" size="12"></td>		
	</tr>
	<tr id="label_payment_bank">
		<td></td>
		<td colspan="3">{[include file="finance/payment/_bank.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>	
</table>
</form>

<div style="margin-top:10px; width:660px;float:left;">
<div id="myGrid" style="width:100%;height:160px;"></div>
<table border="0">
	<tr>
		<td width="480" align="right">合计：<label id="label_total"></label>（小写）</td>
		<td><div id="total_t">{[$result.total]}</div></td>
	</tr>
</table>
</div>

<script type='text/javascript'>
var a = $("#total").val();
var b = $("#currency").find("option:selected").text();

Currency.upper(a, b, "#label_total");

data = {[$result.log]};
var type_json = {[$type_json]};
</script>

<script type="text/javascript" src="js/finance/expense/pay.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/finance/expense/add.js?r={[$smarty.now]}"></script>
